package com.mindata.blockchain.core.bean;

/**
 * 联盟的成员
 * 
 * @author wuweifeng wrote on 2018/3/5.
 */
public class Member {
	/**
	 * 成员id，用于校验该客户是否合法，客户端启动时需要带着该值。一个公司可能有多个appId，相当于多个服务器节点
	 */
	private String appId;
	/**
	 * 成员名
	 */
	private String name;
	/**
	 * ip（可不设置，由该成员客户端启动后自行检测）
	 */
	private String ip;
	/**
	 * socket端口
	 */
	private int socketPort;

	@Override
	public String toString() {
		return "Member{" + "appId='" + appId + '\'' + ", name='" + name + '\'' + ", ip='" + ip + '\'' + ", socketPort='"
				+ socketPort + '\'' + '}';
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(final String appId) {
		this.appId = appId;
	}

	public String getName() {
		return name;
	}

	public void setName(final String name) {
		this.name = name;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(final String ip) {
		this.ip = ip;
	}

	public int getSocketPort() {
		return socketPort;
	}

	public void setSocketPort(int socketPort) {
		this.socketPort = socketPort;
	}

}
